<template>
  <div>
    <h1>home</h1>
    <el-button type="primary" @click="onClicktoLogin"> 跳转 </el-button>
  </div>
</template>

<script setup lang="ts">
import { useRouter } from 'vue-router'
let router = useRouter()
const onClicktoLogin = () => {
  router.push('/login')
}
</script>

<style scoped lang=""></style>
